<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/decorators/taglib.jsp"%>

<script type="text/javascript">
	$(function() 
	{
		$("#menu1").wijmenu
		({
			trigger: ".wijmo-wijmenu-item",
			triggerEvent: "click"
         });
	});
	function expForm(id)
	{
	     $("#nativid").val(id);
		 $("#formId").attr("action", "<c:url value='/expuser/main.action'/>");
		 $("#formId").submit();
		 
	}
		
	
</script>
<body>

 <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
				<form id="formId" method="post">
				    <input type="hidden" id="nativid" name="nativid"/>
                    <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="brand" href="javascript:void(0);">BUTTERCUP</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav">
						<c:forEach items="${menuList}" var="datas">
						   <c:if test="${datas.parentid == 0}">
							<c:choose>
								<c:when test="${datas.id == sessionScope.nativid}">
								 <li class="active"><a href="javascript:void(0);" onclick="expForm('${datas.id}');"><fmt:message key="${datas.name}" /></a>
													
												</li>
								</c:when>
								<c:otherwise>
									 <li ><a href="javascript:void(0);" onclick="expForm('${datas.id}');"><fmt:message key="${datas.name}" /></a>
													
									</li>
								</c:otherwise>
							</c:choose>	
							</c:if>
					    </c:forEach>
                           
                        </ul>
                        <div id="twitter-share" class="pull-right">
                           test
                        </div>
                    </div>
					</form>
                </div>
            </div>
        </div>
	
	
	
</body>
</html>